home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
randpass.zip
/
RANDPASS.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-05-25
|
537b
|
23 lines
program RandomPasswordGenerator; {* By Colin Bowern *}
{* Just a random password generator *}
{* for misc. use! *}
uses Dos, Crt;
const pwrdlen = 8; {* Password Length *}
var password : array[1..pwrdlen] of word;
var i : integer;
begin
for i := 1 to pwrdlen do password[i] := 0;
Randomize;
for i := 1 to pwrdlen do begin
repeat
password[i] := Random(126);
until password[i] > 34
end;
for i := 1 to pwrdlen do write(chr(password[i]));
end.